Configures prefix list rules on specified devices.
ipv4
|ipv6
] .This example configures a prefix list on the specified devices.
efa policy prefix-list update --type ipv6 --name prefix_1_in --operation add-device --ip 10.20.246.29-30 +-------------+------+---------+--------+---------------+----+----+ | Name | Type | Seq num | Action | Prefix | Ge | Le | +-------------+------+---------+--------+---------------+----+----+ | prefix_1_in | ipv6 | 11 | permit | 2001:db8::/48 | | | +-------------+------+---------+--------+---------------+----+----+ Prefix-list details +--------------+---------+--------+ | IP Address | Result | Reason | +--------------+---------+--------+ | 10.20.246.29 | Success | | +--------------+---------+--------+ | 10.20.246.30 | Success | | +--------------+---------+--------+ Device Results
This example removes the prefix list from the specified devices.
efa policy prefix-list update –-name prefix_v4 –-type ipv4 –-operation remove-device --ip 10.20.246.10-11
This example adds a rule to an existing prefix list.
efa policy prefix-list update --type ipv6 --name prefix_1_in --rule "seq[11],action[permit],prefix[2001:db8::/48],ge[64],le[128]" --operation add-rule +-------------+------+---------+--------+---------------+----+-----+ | Name | Type | Seq num | Action | Prefix | Ge | Le | +-------------+------+---------+--------+---------------+----+-----+ | prefix_1_in | ipv6 | 13 | permit | 2001:db8::/32 | 48 | 128 | +-------------+------+---------+--------+---------------+----+-----+ | prefix_1_in | ipv6 | 14 | permit | 2003:db8::/32 | 64 | 128 | +-------------+------+---------+--------+---------------+----+-----+ | prefix_1_in | ipv6 | 15 | deny | 2003:db8::/63 | 64 | 128 | +-------------+------+---------+--------+---------------+----+-----+ | prefix_1_in | ipv6 | 11 | permit | 2001:db8::/48 | 64 | 128 | +-------------+------+---------+--------+---------------+----+-----+ Prefix-list details +--------------+---------+--------+ | IP Address | Result | Reason | +--------------+---------+--------+ | 10.20.246.29 | Success | | +--------------+---------+--------+ | 10.20.246.30 | Success | | +--------------+---------+--------+ Device Results
This example removes a rule from an existing prefix list.
efa policy prefix-list update –-name prefix_v4 –-type ipv4 –-operation remove-rule –-rule seq[5],action[permit],prefix[10.0.0.0/8],ge[16]This example configures an IPv6 prefix list on the specified devices.
efa policy prefix-list update --type ipv6 --name prefix_1_in --operation add-device --ip 10.20.246.29-30 +-------------+------+---------+--------+---------------+----+----+ | Name | Type | Seq num | Action | Prefix | Ge | Le | +-------------+------+---------+--------+---------------+----+----+ | prefix_1_in | ipv6 | 11 | permit | 2001:db8::/48 | | | +-------------+------+---------+--------+---------------+----+----+ Prefix-list details +--------------+---------+--------+ | IP Address | Result | Reason | +--------------+---------+--------+ | 10.20.246.29 | Success | | +--------------+---------+--------+ | 10.20.246.30 | Success | | +--------------+---------+--------+ Device ResultsThis example adds a rule to an existing IPv6 prefix list.
efa policy prefix-list update --type ipv6 --name prefix_1_in --rule "seq[11],action[permit],prefix[2001:db8::/48],ge[64],le[128]" --operation add-rule +-------------+------+---------+--------+---------------+----+-----+ | Name | Type | Seq num | Action | Prefix | Ge | Le | +-------------+------+---------+--------+---------------+----+-----+ | prefix_1_in | ipv6 | 13 | permit | 2001:db8::/32 | 48 | 128 | +-------------+------+---------+--------+---------------+----+-----+ | prefix_1_in | ipv6 | 14 | permit | 2003:db8::/32 | 64 | 128 | +-------------+------+---------+--------+---------------+----+-----+ | prefix_1_in | ipv6 | 15 | deny | 2003:db8::/63 | 64 | 128 | +-------------+------+---------+--------+---------------+----+-----+ | prefix_1_in | ipv6 | 11 | permit | 2001:db8::/48 | 64 | 128 | +-------------+------+---------+--------+---------------+----+-----+ Prefix-list details +--------------+---------+--------+ | IP Address | Result | Reason | +--------------+---------+--------+ | 10.20.246.29 | Success | | +--------------+---------+--------+ | 10.20.246.30 | Success | | +--------------+---------+--------+ Device Results